<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<%-- JSTL核心标签 --%>
<%@ page import="com.system.commons.utils.DateUtil" %>
<%@ page import="java.util.UUID" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
    <%
    String requestBizNo = DateUtil.getCurrent(DateUtil.fullPattern);
    String traceLogId = UUID.randomUUID()+"";
    String orderValidityTime =  DateUtil.format(DateUtil.addSeconds(DateUtil.getCurrentDate(),15*60),DateUtil.fullPattern);
%>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <meta http-equiv="Content-Type" content="text/html charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="${ctx}/css/bootstrap.min.css"/>
    <script type="text/javascript" src="${ctx}/js/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>
</head>
<body style="height: 100%;overflow: hidden;">
<div style="margin-bottom: 60px;overflow: visible;">
    <div id="context">
        <form action="webPay" method="post" theme="simple" id="form1">
            <!-- 条件 -->
            <div id="portlet-body" style="text-align: center;">
                <table class="table-condensed" style="width: 100%;">
                    <tbody>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">请求系统：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="requestSystem" value="WEB" required/>
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">请求业务编号：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="requestBizNo" value="abcdef<%=requestBizNo%>" required/>
                	</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">请求订单号：</label>
                        <td>
                	<span class="control-span">
                        <input type="text" name="requestOrderNo" value="8888988<%=requestBizNo%>" required/>
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">请求时间：</label>
                        <td>
                	<span class="control-span">
                        <input type="text" name="requestDate" value="<%=requestBizNo%>" required/>
                	</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">支付终端类型：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <select name="requestChannel">
                            <option value="WEB">WEB</option>
                            <option value="WAP">WAP</option>
                        </select>
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">商户号：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="merchantNo" value="0000011" required/>
                	</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">商户名称：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="merchantName" value="上海慧生钱金融信息有限公司" required/>
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">商户客户帐号：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="merchantContractNo" value="3177000000000026" />
                	</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">用户登录号：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="loginNo" value="15026594483" required/>
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">用户名称：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="userName" value="许某某" />
                	</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">用户客户帐号：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="userContractNo" value="3177000000000044" />
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">业务类型：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="bizType" value="充值" required/>
                	</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">业务操作类型：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="subBizType" value="快捷支付" />
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">货币：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="ccy" value="CNY" required/>
                	</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">支付金额：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="number" name="amt" value="1000" required/>
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">日志ID：</label>
                        </td>
                        <td>
                	<span class="control-span">
                        <input type="text" name="traceLogId" value="<%=traceLogId%>" required/>
                	</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">订单有效期截止时间：</label>
                        </td>
                        <td>
                    <span class="control-span">
                        <input type="text" name="orderValidityTime" value="<%=orderValidityTime%>" required/>
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">版本号：</label>
                        </td>
                        <td>
                    <span class="control-span">
                        <select name="version">
                            <option value="V5_0">V5_0</option>
                            <option value="V5_1">V5_1</option>
                        </select>
                	</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="textRight">
                            <label class="control-label">前台返回地址：</label>
                        </td>
                        <td>
                    <span class="control-span">
                        <input type="text" name="pgUrl" value="http://www.baofoo.com" required/>
                	</span>
                        </td>
                        <td class="textRight">
                            <label class="control-label">客户端IP：</label>
                        </td>
                        <td>
                    <span class="control-span">
                        <input type="text" name="remoteIp" value="127.0.0.1" required/>
                	</span>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="align-content: center">
                <div>
                    <button type="button" class="btn btn-success" onclick="testPay('PAY');"> 支付</button>
                    <button type="button" class="btn btn-warning" onclick="testPay('RECHARGE');"> 充值</button>
                </div>
            </div>
        </form></div>
</div>